#pragma once

#include <QtWidgets/QWidget>
#include "ui_qt_sdl_tst.h"
#include <QMainWindow>
#include <QMenu>
#include <QAction>
class qt_sdl_tst : public QMainWindow
{
    Q_OBJECT

public:
    qt_sdl_tst();
    
private slots:
    void open();
    void about();
private:
    bool isImageOpen;
    void draw_pic();
    void prepare_data();
    QLabel* label1;
    QImage image1;
    //Ui::qt_sdl_tstClass ui;
   
    void createActions();
    void createMenus();
    QMenu* saveAsMenu;
    QMenu* fileMenu;
    QMenu* optionMenu;
    QMenu* helpMenu;

    QAction* openAct;
    QList<QAction*> saveAsActs;
    QAction* exitAct;
    QAction* penColorAct;
    QAction* penWidthAct;
    QAction* printAct;
    QAction* clearScreenAct;
    QAction* aboutAct;
    QAction* aboutQtAct;
protected:
    void timerEvent(QTimerEvent* event)override;
    void paintEvent(QPaintEvent* e)override;
    void resizeEvent(QResizeEvent* e)override;
};
